package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.CompanyAccountRequest;
import one.stand.response.CompanyAccountResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: QIK
 * @CreateDate: 2019/5/13 17:24
 */
@RestController
@RequestMapping("companyAccount")
public class CompanyAccountController extends BaseController {

    @PostMapping("getCompanyAccountList")
    public ResultModel<List<CompanyAccountResponse>> getCompanyAccountList(@RequestBody CompanyAccountRequest request){
        return companyAccountService.getAccountList(request);
    }
}
